#include #include using std::cin; using std::cout; using std::endl; void main() { // cout << time(NULL) << endl; //seeds the random number generator srand((int)time(NULL)); //int A[100]; int counts[13] = {0}; for(int i= 0; i < 10000; i++) { int roll = rand()%6 + 1 + rand()%6 + 1; //A[i] = roll; counts[roll]++; } for(int i= 0; i < 13; i++) { cout << counts[i] << endl; } //sort the list //for(int i= 0; i < 100; i++) //{ // cout << A[i] << endl; //} }